<div class="admin_cabecera_izquierda alto1">
	<p class="titulo_seccion_rojo">Configuración</p>
</div>
<div class="caja_gris">
	<script>
	function togglePwdMask(check,pass,text)
	{
		if(check.checked == false)
		{
			jQuery(pass).attr('style','display: none;');
			jQuery(text).attr('style','');
			jQuery(text).attr('value',jQuery(pass).attr('value'));
		}
		else
		{
			jQuery(pass).attr('style','');
			jQuery(text).attr('style','display: none;');
			jQuery(pass).attr('value',jQuery(text).attr('value'));
		}
	}
	function updateField(source,destination)
	{
		jQuery(destination).attr('value',jQuery(source).attr('value'));
	}
	</script>
	<div class="yiiForm">
	<?php echo CHtml::beginForm(); ?>
	    <div class="breadcrumb">Configuración&nbsp;&gt;&nbsp;<strong>Cambiar Contrase&ntilde;a</strong></div>
	    <p class="titulo_seccion_gris">Cambiar Contrase&ntilde;a</p>
		<div class="lista6">
		<?php if(Yii::app()->user->hasFlash('error')):?>
		    <div class="info">
		        <?php echo Yii::app()->user->getFlash('error'); ?>
		    </div>
		<?php endif; ?>
		<?php if(Yii::app()->user->hasFlash('success')):?>
		    <div class="infoBlue">
		        <?php echo Yii::app()->user->getFlash('success'); ?>
		    </div>
		<?php endif; ?>
		</div>
	    <div class="lista2">
	      <table width="100%" cellspacing="0" cellpadding="0">
	        <tr>
	          <td width="20" rowspan="12">&nbsp;</td>
	          <td height="5" colspan="3">&nbsp;</td>
	        </tr>
	        <tr>
	          <td width="150" height="30" class="margen1">Usuario</td>
	          <td colspan="2"><input class="campo_texto" type="text" name="textfield" value="<?php echo $model->usr_nickname?>" readonly="readonly" /></td>
	        </tr>
	        <tr>
	          <td height="30" class="margen1">Email</td>
	          <td colspan="2"><?php echo CHtml::activeTextField($model,'usr_email', array('class'=>'campo_texto')); ?></td>
	        </tr>
	        <tr>
	        <?php $textBoxOver = 'Tamaño mínimo de 8 caracteres. Contener al menos 3-4 de la siguientes cosas:<br>- Letras en Mayúsculas<br>- Letras en Minúsculas<br>- Números<br>- Simbolos'?>
	          <td height="30" class="margen1">Contrase&ntilde;a Actual<a class="requerimientos" href="#"><img src="/images/img_requerimiento.png" alt="Requerimientos" title="<?php $this->widget('application.extensions.boxOver.BoxOver',array('size'=>6,'header'=>'Requerimientos mínimos','body'=>$textBoxOver));?>" /></a></td>
	          <td colspan="2">
				<input class="campo_texto" type="password" id="passwordPwd" name="passwordPwd" maxlength="16" autocomplete="off" tabindex="3" onkeyup="updateField('#passwordPwd','#passwordTxt');" />
				<input class="campo_texto" type="text" id="passwordTxt" name="passwordTxt" maxlength="16" autocomplete="off" style="display: none;" onkeyup="updateField('#passwordTxt','#passwordPwd');" />
				<input type="checkbox" id="mostrarPwd" name="mostrarPwd" value="1" checked="checked" onclick="togglePwdMask(this,'#passwordPwd','#passwordTxt');" />
	          </td>
	        </tr>
	        <tr>
	          <td height="30" class="margen1">Contrase&ntilde;a Nueva</td>
	          <td colspan="2">
				<input class="campo_texto" type="password" id="passwordPwdNew" name="passwordPwdNew" maxlength="16" autocomplete="off" tabindex="3" onkeyup="chkPass(this.value);updateField('#passwordPwdNew','#passwordTxtNew');" />
				<input class="campo_texto" type="text" id="passwordTxtNew" name="passwordTxtNew" maxlength="16" autocomplete="off" style="display: none;" onkeyup="chkPass(this.value);updateField('#passwordTxtNew','#passwordPwdNew');" />
				<input type="checkbox" id="mostrarPwdNew" name="mostrarPwdNew" value="1" checked="checked" onclick="togglePwdMask(this,'#passwordPwdNew','#passwordTxtNew');" />
	          </td>
	        </tr>
	        <tr>
	          <td height="30" class="margen1">Repetir Contrase&ntilde;a</td>
	          <td colspan="2">
				<input class="campo_texto" type="password" id="passwordPwdNew2" name="passwordPwdNew2" maxlength="16" autocomplete="off" tabindex="3" onkeyup="updateField('#passwordPwdNew2','#passwordTxtNew2');" />
				<input class="campo_texto" type="text" id="passwordTxtNew2" name="passwordTxtNew2" maxlength="16" autocomplete="off" style="display: none;" onkeyup="updateField('#passwordTxtNew2','#passwordPwdNew2');" />
				<input type="checkbox" id="mostrarPwdNew2" name="mostrarPwdNew2" value="1" checked="checked" onclick="togglePwdMask(this,'#passwordPwdNew2','#passwordTxtNew2');" />
	          </td>
	        </tr>
	        <tr>
	          <td height="30" class="margen1">Fortaleza Contrase&ntilde;a</td>
	          <td width="250">&nbsp;</td>
	          <td>
				<?php $this->widget('application.modules.users.extensions.passwordStrength.PasswordStrength');?>          
	          </td>
	        </tr>
	        <tr>
	          <td height="5" colspan="3">&nbsp;</td>
	        </tr>
	      </table>
	    </div>
	    <div class="botones_finales2"><?php echo CHtml::linkButton('Aceptar',array('class'=>'botones_grises2'))?></div>
	<?php echo CHtml::endForm(); ?>
	</div><!-- yiiForm -->
</div>